package second;

public class Bank {
    int savedMoney;
    int year;
    double interest;

    public Bank(int savedMoney, int year, double interest) {
        this.year = year;
        this.savedMoney = savedMoney;
        this.interest = interest;
    }

    double ComputerInterest() {
        return year * interest * savedMoney;
    }
}